package com.qfedu.service.impl;

import com.qfedu.dao.ClinicpatientRegisteredClinic_usersDao;
import com.qfedu.pojo.ClinicpatientRegisteredClinic_users;
import com.qfedu.service.ClinicpatientRegisteredClinic_usersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ClinicpatientRegisteredClinic_usersServiceImpl implements ClinicpatientRegisteredClinic_usersService {
    @Resource
    private ClinicpatientRegisteredClinic_usersDao clinicpatientRegisteredClinic_usersDao;
    @Override
    public List<ClinicpatientRegisteredClinic_users> getAll() {
        return clinicpatientRegisteredClinic_usersDao.getAll();
    }

    @Override
    public int delete(int rid) {
        return clinicpatientRegisteredClinic_usersDao.delete(rid);
    }

    @Override
    public ClinicpatientRegisteredClinic_users getAllByPname(String pname) {
        return clinicpatientRegisteredClinic_usersDao.getAllByPname(pname);
    }
}
